System and method for exact compensation of fundamental phasors

ABSTRACT

A measured phasor representing a sinusoidal power signal waveform is produced by orthogonal FIR filters, one of which produces the real part of the phasor and the other of which produces the imaginary part. The frequency difference between the rated frequency of the signal waveform in the power system and the actual frequency of the waveform at any selected point in time is determined and the elements (A, B, C, D) of a compensation matrix is determined. The compensation matrix is then used to perform a linear transformation to produce an exact phasor for the waveform.

TECHNICAL FIELD

[0001] This invention relates generally to the computation of phasors corresponding to voltage and current waveforms in an electric power system, which are used for instance as inputs to digital protective relays for the power system, and more specifically concerns a system and method for compensating such computated phasors when the actual power system signal frequency is different than its rated frequency, which would otherwise result in errors in the phasors.

BACKGROUND OF THE INVENTION

[0002] In microprocessor-based protective relays, such as used for protection of electric power systems, a pair of numerical filters is typically used to compute the complex numbers which represent the fundamental component phasors for the power system voltage and current waveforms. The phasors are used by the protective relay to carry out its monitoring and protection functions for the power system. The numerical filters are designed so that their output waveforms are orthogonal, which reduces the impact of waveform harmonics and DC offsets. Typically, digital finite impulse response (FIR) filters are used in this arrangement. One FIR filter output represents the real part of the complex number for the phasor, while the output of the other FIR filter represents the imaginary part of the complex number.

[0003] The filters are designed such that at the rated frequency of the power system, i.e. 60 or 50 Hz, depending on the particular country, the gain of each filter is unity and the phase angle between the two outputs is 90°, i.e. orthogonal. However, when the actual power system frequency is different than the rated frequency, the phasor (produced by the two filters) will have errors, both in magnitude and in phase angle; these errors become larger as the actual power signal frequency deviates further from the rated frequency. Errors in the phasors are undesirable, as they can result in erroneous/poor performance of the protective relay.

[0004] Although various techniques are known and have been used to compensate for fundamental component phasor errors resulting from differences between the actual frequency and the rated frequency, one well-known and frequently used technique, known generally as frequency tracking, adjusts the number of samples per cycle (the sampling frequency) for the incoming power signal depending on line difference between the actual and rated frequencies. The frequency of the incoming power signal (the actual power system frequency) is measured and the sampling frequency is adjusted accordingly.

[0005] Another technique, based on a fixed sampling rate, is described in U.S. Pat. No. 6,141,196 to Premerlani, which corrects the phasor obtained from the filtering system by introducing two correction factors, referred to in Premerlani as ε₁ and ε₂. The correction factors are used in the following equation, where Z_(m) is equal to the corrected phasor and X_(m) is the measured (actual) phasor.

{overscore (Z)} _(m)=(1+ε₂−ε₁){overscore (X)} _(m)

[0006] The Premerlani ε₁ and ε₂ values are calculated using specific equations set out in Premerlani, which include values of actual (measured) system frequency and rated frequency. However, the Premerlani technique, while providing some correction for phasor errors due to frequency difference, still results in phasors which include some error. The amount of the error increases as the frequency difference increases. Further, the Premerlani technique is applicable only to full cycle Fourier-type FIR filters. It cannot be used for other FIR filters, such as Cosine filters.

[0007] Hence, it would be desirable to have a compensation system which provides an exact compensation for phasors when the measured power system frequency is different from the rated frequency, and further that such a compensation system provide such exact compensation over a wide range of frequency difference.

SUMMARY OF THE INVENTION

[0008] Accordingly, the present invention is a system and corresponding method for determining an accurate fundamental phasor for a signal waveform from a system, such as a power signal waveform from a power system, where there is a difference between a rated frequency of such waveform for said system and an actual frequency of the waveform at a given point in time, comprising: a circuit for determining a measured phasor, including both real and imaginary parts, representing the signal waveform, without adjusting for frequency of the waveform, wherein the measured phasor contains errors if the actual frequency of the waveform is different than the rated frequency; a circuit for determining the actual frequency of the waveform in the system and the frequency difference between the actual frequency and the rated frequency; and a circuit for determining an actual phasor, including both real and imaginary parts for said waveform, which takes into account said frequency difference, by multiplying the real and imaginary components of the measured phasor by a preselected 2 by 2 compensating matrix.

BRIEF DESCRIPTION OF THE DRAWINGS

[0009]FIG. 1 shows the diagram of a phasor filtering system represented in the time domain.

[0010]FIG. 2 represents a phasor filtering system represented in the z domain.

[0011]FIG. 3 is a diagram illustrating the principle of frequency compensation of the present invention.

[0012]FIGS. 4-7 are plots of compensation factors for the full-cycle Cosine filter over a selected frequency range.

[0013]FIG. 8 is a diagram showing the compensation system of the present invention using stored four compensating matrix elements.

[0014]FIG. 9 is a diagram showing the frequency compensation system of the present invention using polynomial regression for the four compensating matrix elements.

BEST MODE FOR CARRYING OUT THE INVENTION

[0015] As discussed briefly above, a pair of orthogonal filters, generally digital finite response (FIR) filters are used to produce the fundamental component phasors representing the voltage and current waveforms of a power system. These phasors are then used by digital protective relays to ascertain power system fault conditions and, when necessary, provide a tripping action. An FIR filter is a digital filter that has an impulse response which is zero outside some finite time interval. Digital filters which utilize this technique include Fourier and Cosine filters. The individual coefficients of the FIR filters are typically selected such that the gain of each filter is unity (1) at the rated frequency of the power system and such that the phase angle between the two outputs of the orthogonal filters is 90° at the rated frequency.

[0016] The system and method of the present invention is directed toward compensating the calculated phasors when the actual frequency of the power system varies from the rated frequency. Rated frequencies are typically either 60 Hz or 50 Hz, depending upon the country where the power system is located. A power system is designed to operate at its rated frequency. In some cases, however, there can be a substantial difference (as much as 10 Hz) between the rated power system frequency and the actual frequency, due to system conditions with severe disturbances.

[0017] The present invention uses a linear transformation of the Cartesian components of the calculated phasor to provide an exact frequency compensation. It is applicable to any filtering system which comprises two orthogonal FIR filters, including particularly Fourier and Cosine filters, but other FIR filters or combinations thereof as well. It thus has the advantage of wide applicability.

[0018] The output of one of the two orthogonal filters which are responsive to input voltage and/or current waveforms from the power system, referred to as the “cosine” part, is represented by the (a) coefficients of the system and provides the real part of the resulting calculated phasor, while the output of the other filter, referred to as the “sine” part, is represented by the (b) coefficients and provides the imaginary part of the calculated phasor. The combination of the outputs of the two filters is the fundamental measured phasor representing the voltage or current input waveform.

[0019] The two filters will have N coefficients, corresponding to the number of samples of the input waveform (voltage or current, for example) being processed within one data window. Typically, N will be 12, 16, 24 or 32.

[0020] Generally, the measured phasor for the voltage/current input waveforms is computed using the following formula, in the time domain: $\begin{matrix} {{\overset{\_}{X}}_{mes} = {\sum\limits_{k = 0}^{N - 1}{\left\lbrack {x\left( {{k \cdot \Delta}\quad T} \right)} \right\rbrack \quad \left( {a_{k} + {jb}_{k}} \right)}}} & (1) \end{matrix}$

[0021] This is implemented by the system shown in FIG. 1, which includes a sampling circuit 10 operating at a selected rate (1/ΔT) on a waveform, such as a voltage or current waveform. The samples (the last N number thereof) are stored in a table 12 and then operated on by calculation circuit 14 with equation (1) to produce a resulting phasor, referred to as a measured phasor. This is conventional. The same equation can be expressed in the z domain, which is commonly used to express digital filter operation: $\begin{matrix} {{\overset{\_}{X}}_{mes} = {\sum\limits_{k = 0}^{N - 1}{\left\lbrack {x\left( {{\left( {N - 1 - k} \right) \cdot \Delta}\quad T} \right)} \right\rbrack \quad \left( {a_{N - 1 - k} + {j\quad b_{N - 1 - k}}} \right)z^{- k}}}} & (2) \end{matrix}$

[0022] This is implemented by the system of FIG. 2, which includes a sampling circuit 16 and a resulting table of stored values 18 (the last N samples), which are then operated on by calculation circuit 20, using equation (2), to produce a measured phasor in the z domain. This is also conventional.

[0023] The frequency difference between the rated frequency and an actual frequency of a power system is referred to herein as Δω. A waveform with a Δω can be defined as follows:

x(t)=A cos[(ω₀+Δω)t+φ]  (3)

[0024] The exact (compensated) phasor of x(t) is provided by the complex number:

{overscore (X)}= A e^(jφ)  (4)

[0025] where {overscore (X)} is the true or exact phasor having a magnitude A which is the maximum value of the true waveform and a phase angle which is the constant term in the instantaneous expression:

(ω₀+Δω)t+φ  (5)

[0026] If equation (3) is expressed in exponential form: $\begin{matrix} {{x(t)} = {A\left\lbrack \frac{^{j{\lbrack{{{({\omega_{0} + {\Delta \quad w}})}t} + \phi}\rbrack}} + ^{- {j{\lbrack{{{({\omega_{0} + {\Delta \quad \omega}})}t} + \phi}\rbrack}}}}{2} \right\rbrack}} & (6) \end{matrix}$

[0027] then the measured phasor is equal to: $\begin{matrix} {{\overset{\_}{X}\quad {mes}} = {\underset{k = 0}{\overset{N - 1}{\sum\quad}}{A\frac{^{j{\lbrack{{{({\omega_{0} + {\Delta \quad w}})}k\quad \Delta \quad t} + \phi}\rbrack}} + ^{- {j{\lbrack{{{({\omega_{0} + {\Delta \quad \omega}})}k\quad \Delta \quad t} + \phi}\rbrack}}}}{2}\left( {a_{k} + {j\quad b_{k}}} \right)}}} & (7) \end{matrix}$

[0028] Equation (7) can further be expressed as follows, considering equation (4): $\begin{matrix} \begin{matrix} {{\overset{\_}{X}\quad {mes}} = {{\overset{\_}{X}{\underset{k = 0}{\overset{N - 1}{\sum\quad}}{\frac{^{j{\lbrack{{({\omega_{0} + {\Delta \quad w}})}k\quad \Delta \quad t}\rbrack}}}{2}\left( {a_{k} + {j\quad b_{k}}} \right)}}} +}} \\ {{\overset{\_}{X}*{\underset{k = 0}{\overset{N - 1}{\sum\quad}}{\frac{^{- {j{\lbrack{{({\omega_{0} + {\Delta \quad w}})}k\quad \Delta \quad t}\rbrack}}}}{2}\left( {a_{k} + {j\quad b_{k}}} \right)}}}} \end{matrix} & (8) \end{matrix}$

[0029] The measured phasor can then be expressed as a function of the exact phasor, with two correction factors designated P and Q:

{overscore (X)}mes=P{overscore (X)}+Q{overscore (X)}*  (9)

[0030] Correction factors P and Q are functions of the frequency difference (deviation) Δω in terms of the waveform and are defined as follows: $\begin{matrix} {{P({\Delta\omega})} = {\frac{1}{2}{\sum\limits_{k = 0}^{N - 1}{^{{j{({\omega_{0} + {\Delta \quad \omega}})}}k\quad \Delta \quad T}\left( {a_{k} + {j\quad b_{k}}} \right)}}}} & (10) \\ {{Q({\Delta\omega})} = {\frac{1}{2}{\sum\limits_{k = 0}^{N - 1}{^{{- {j{({\omega_{0} + {\Delta \quad \omega}})}}}k\quad \Delta \quad T}\left( {a_{k} + {j\quad b_{k}}} \right)}}}} & (11) \end{matrix}$

[0031] For a particular frequency difference Δω, P and Q are constant complex numbers, the value of which depends upon the sampling frequency, which is equal to 1/ΔT and the (a) and (b) coefficients of the two FIR filters, referred to as a_(k) and b_(k). The a_(k) and b_(k) coefficients are constant real numbers and are associated with the type of filter used.

[0032] If the correction factors P and Q are set forth with real and imaginary parts, then P=P_(R)+jP_(I) and Q=Q_(R)+jQ_(I) and X_(mes)=X_(mes—R)+jX_(mes—I) and X=X_(R)+JX_(I), it is then possible to express the Cartesian components of the measured phasor (X_(mes), real and imaginary parts) in terms of the exact phasor (X, real and imaginary) as follows: $\begin{matrix} {\begin{bmatrix} X_{{mes}\quad \_ \quad R} \\ X_{{mes}\quad \_ \quad I} \end{bmatrix} = {\begin{bmatrix} {\left( {P_{R} + Q_{R}} \right)\quad} & \left( {Q_{I} - P_{I}} \right) \\ \left( {P_{I} + Q_{I}} \right) & \left( {P_{R} - Q_{R}} \right) \end{bmatrix} \cdot \begin{bmatrix} X_{R} \\ X_{I} \end{bmatrix}}} & (12) \end{matrix}$

[0033] The exact (or true) phasor components then can be expressed as a linear transformation of the measured phasor components after the inverse 2 by 2 matrix has been calculated, as follows: $\begin{matrix} {{\begin{bmatrix} X_{R} \\ X_{I} \end{bmatrix} = {\begin{bmatrix} {\left( {P_{R} + Q_{R}} \right)\quad} & \left( {Q_{I} - P_{I}} \right) \\ \left( {P_{I} + Q_{I}} \right) & \left( {P_{R} - Q_{R}} \right) \end{bmatrix}^{- 1} \cdot \begin{bmatrix} X_{{mes}\quad \_ \quad R} \\ X_{{mes}\quad \_ \quad I} \end{bmatrix}}}{{or}\text{:}}} & (13) \\ {{\begin{bmatrix} X_{R} \\ X_{I} \end{bmatrix} = {\begin{bmatrix} {{A\left( {\Delta \quad \omega} \right)}\quad} & {B({\Delta\omega})} \\ {C({\Delta\omega})} & {D({\Delta\omega})} \end{bmatrix} \cdot \begin{bmatrix} X_{{mes}\quad \_ \quad R} \\ X_{{mes}\quad \_ \quad I} \end{bmatrix}}}{{with}\text{:}}} & (14) \\ {\begin{bmatrix} {{A\left( {\Delta \quad \omega} \right)}\quad} & {B({\Delta\omega})} \\ {C({\Delta\omega})} & {D({\Delta\omega})} \end{bmatrix} = \begin{bmatrix} {\left( {P_{R} + Q_{R}} \right)\quad} & \left( {Q_{I} - P_{I}} \right) \\ \left( {P_{I} + Q_{I}} \right) & \left( {P_{R} - Q_{R}} \right) \end{bmatrix}^{- 1}} & (15) \end{matrix}$

[0034] Equation 14 (and FIG. 3) expresses the system of the present invention as follows: if the phasor of a sine wave such as voltage or current is measured using a pair of FIR filters, each of an order N, at a frequency which is different than the rated frequency, the exact (true) phasor can then be determined by applying a linear transformation to the Cartesian coordinates of the measured phasor. The linear transformation is accomplished by a. correction matrix which is defined by equation (15). The four real numbers A, B, C, D in the correction matrix are readily available for a given frequency difference by computing the value of P and Q with equations (10) and (11) and then by taking the inverse of the matrix as equation (15). The result is an exact phasor, without any error, regardless of the difference in frequency between the system actual frequency (at any point in time) and the rated frequency, respectively, of the power system.

[0035] As discussed above, an accurate determination of the P and Q correction factors requires the determination of the actual frequency of the incoming signal. This can be done with a variety of techniques. Some examples are set forth in the article entitled “A New Measurement Technique for Tracking Voltage Phasors, Local System Frequency and Rate of Change of Frequency” by G. Phadke, J. S. Thorp, M. G. Adamiak, in IEEE Transactions on Power Apparatus and Systems, Vol. PAS-102, No. 5, May 1983, the contents of which are hereby incorporated by reference. Again, various known frequency measurement techniques can be used to determine the actual frequency of the power system.

[0036] The system of the present invention is shown generally in FIG. 3. The incoming signal x(t) is sampled at 20 at a rate of 1/ΔT and a table 22 of the last N samples is stored. The stored samples are then operated on by equation (1) at 24 and applied at one input 27 to calculation circuit 26. The actual frequency of the incoming signal X(t) is determined at 28 and the difference frequency is applied to input 29 of calculation circuit 26, to determine the exact phasor, which is then used by a protective relay, for instance, in its protection function.

[0037] The above compensation is a generalized compensation approach, i.e. it can be used with a variety of FIR filter pairs.

[0038] In a first specific example, for a full cycle digital Fourier transform filter pair, the coefficients of the FIR filters are provided by the following formula: $\begin{matrix} {{{a_{k} + {j\quad b_{k}}} = {{\frac{2}{N}^{{- j}\frac{2\pi \quad k}{N}}} = {\frac{2}{N}\left( {\cos \quad \frac{2\quad \pi \quad k}{N}j\quad \sin \quad \frac{2\pi \quad k}{N}} \right)}}}{k = 0},1,{{\ldots \quad N} - 1}} & (16) \end{matrix}$

[0039] The measured phase for a sine wave such as the voltage and current waveform is provided by the following formula: $\begin{matrix} {{\overset{\_}{X}}_{mes} = {\frac{2}{N}{\sum\limits_{k = 0}^{N - 1}{\left\lbrack {x\quad \left( {k\quad \Delta \quad T} \right)} \right\rbrack ^{{- \quad j}\frac{2\quad \pi \quad k}{N}}}}}} & (17) \end{matrix}$

[0040] If equations (5) and (6) are then used to compute the corresponding correction factors, shown below as P_(DFT) and Q_(DFT), the following results: $\begin{matrix} {{P_{DFT} = {{P_{DFT\_ R} + {j\quad P_{DFT\_ I}}} = {\frac{1}{N}\frac{\sin \quad N\quad \theta_{1}}{\sin \quad \theta_{1}}^{j\quad {({N - 1})}\theta_{1}}}}}{{and}\text{:}}} & (18) \\ {Q_{DFT} = {{Q_{DFT\_ R} + {j\quad Q_{DFT\_ I}}} = {\frac{1}{N}\frac{\sin \quad N\quad \theta_{2}}{\sin \quad \theta_{2}}^{{- {j{({N - 1})}}}\theta_{2}}}}} & (19) \end{matrix}$

[0041] θ₁ and θ₂ are determined by the following calculations: $\begin{matrix} {\theta_{1} = \frac{\Delta \quad \omega \quad \Delta \quad T}{2}} & (20) \\ {\theta_{2} = \frac{{\Delta \quad \omega \quad \Delta \quad T} + \frac{4\quad \pi}{N}}{2}} & (21) \end{matrix}$

[0042] A second example is for a half-cycle digital Fourier transform (DFT) filter pair which have data windows which are one-half of the full cycle DFT. The coefficients of the corresponding FIR filters are: $\begin{matrix} {{{a_{k} + {j\quad b_{k}}} = {\frac{4}{N}^{{- j}\frac{2\quad \pi \quad k}{N}}}}{{k = 0},1,{{\ldots \quad {N/2}} - 1}}} & (22) \end{matrix}$

[0043] with the measured phasor being provided by the following equation: $\begin{matrix} {{{\overset{\_}{X}}_{mes} = \frac{4}{N}}{\sum\limits_{k = 0}^{{N/2} - 1}{\left\lbrack {x\left( {k\quad \Delta \quad T} \right)} \right\rbrack ^{{- j}\frac{2\quad \pi \quad k}{N}}}}} & (23) \end{matrix}$

[0044] The two correction factors P and Q relative to the half-cycle DFT filter indicated by PHDFT and Qua are then also calculated using equations (5) and (6). $\begin{matrix} {P_{HDFT} = {\frac{2}{N}\frac{\sin \quad \frac{N}{2}\theta_{1}}{\sin \quad \theta_{1}}^{{j{({\frac{N}{2} - 1})}}\theta_{1}}}} & (24) \\ {Q_{HDFT} = {\frac{2}{N}\frac{\sin \quad \frac{N}{2}\theta_{2}}{\sin \quad \theta_{2}}^{{- {j{({\frac{N}{2} - 1})}}}\theta_{2}}}} & (25) \end{matrix}$

[0045] where θ₁ and θ₂ are defined as in equations (20) and (21).

[0046] In a third example, for a full cycle Cosine filter pair, the measured phasor is provided by the following equation: $\begin{matrix} {{\overset{\_}{X}}_{mes} = {{\frac{2}{N}{\sum\limits_{k = 0}^{N - 1}{x\left( {k\quad \Delta \quad T} \right)}}} - {j\quad {x\left( {\left( {k + \frac{N}{4}} \right)\Delta \quad T} \right)}\cos \frac{2\quad \pi \quad k}{N}}}} & (26) \end{matrix}$

[0047] The two correction factors P and Q for the full cycle Cosine filter, P_(cos) and Q_(cos), are also determined from equations (20) and (21): $\begin{matrix} \begin{matrix} {P_{COS} = {{\frac{1}{2N}\left\lbrack {1 - {j\quad ^{j\frac{N}{4}{({\omega_{0} + {\Delta \quad \omega}})}\Delta \quad T}}} \right\rbrack} \cdot \left\lbrack {\frac{\sin \quad N\quad \theta_{1}}{\sin \quad \theta_{1}}^{{j{({N - 1})}}\theta_{1}}} \right\rbrack \cdot}} \\ {\left\lbrack {\frac{\sin \quad N\quad \theta_{2}}{\sin \quad \theta_{2}}^{{j{({N - 1})}}\theta_{2}}} \right\rbrack} \end{matrix} & (27) \\ \begin{matrix} {Q_{COS} = {{\frac{1}{2N}\left\lbrack {1 - {j\quad ^{{- j}\frac{N}{4}{({\omega_{0} + {\Delta \quad \omega}})}\Delta \quad T}}} \right\rbrack} \cdot \left\lbrack {\frac{\sin \quad N\quad \theta_{1}}{\sin \quad \theta_{1}}^{{- {j{({N - 1})}}}\theta_{1}}} \right\rbrack \cdot}} \\ {\left\lbrack {\frac{\sin \quad N\quad \theta_{2}}{\sin \quad \theta_{2}}^{{- {j{({N - 1})}}}\theta_{2}}} \right\rbrack} \end{matrix} & (28) \end{matrix}$

[0048] Hence, after a particular filter arrangement has been selected, the filter coefficients for those filters are determined and then the P and Q correction factors, for a particular frequency difference between the rated frequency and the actual frequency. The four numbers A, B, C, D of the compensating matrix can thereafter be determined to produce the exact phasor.

[0049] With the above process, the numbers can be precalculated for several frequency differences (Δf) and then plotted to cover a predetermined range of frequency differences. FIGS. 4-7 represent the plots of the four numbers (elements) A, B, C, D, respectively, of the matrix for a full-cycle Cosine filter, covering a frequency range (for the actual frequency) of 40-80 Hz (−20 Hz to +20 Hz), where the number of samples per cycle (N) of the filter system is 16 and the system sampling frequency is 960 Hz.

[0050] The four element values of several selected frequencies can be stored in a table, with the element values for a particular value of frequency difference Δf between the various table values being determined by interpolation. The correct A, B, C and D values can be quickly provided once a Δf is determined. This saves the calculation of those values each time an exact phasor is calculated. This is shown in the system of FIG. 8, where an actual frequency measurement is made at 30, and where the A, B, C, D element values for a range of Δf are stored in Tables 32-35. The selected element values are directed to a calculation circuit 38, which carries out the calculation discussed above on the measured phasor X_(mes) to produce an exact phasor X. The measured phasor is determined like FIG. 1, with a sampling process 40, a table of sampled values 46 and a calculation circuit 48. The output of calculated circuit 48 is applied to calculation circuit 38. The output of calculation circuit 38 is the exact phasor, having a real component X_(R) and an imaginary component jX_(I).

[0051] Alternatively, the four element values A, B, C, D can be represented by a polynomial of order m, where m is typically equal to 3 or higher. Polynomial regression analysis represents the compensation matrix elements as follows:

A=a ₄ Δf ⁴ +a ₃ Δf ³ +a ₂ Δf ² +a ₁ Δf ¹ +a ₀ Δf ⁰  (29)

B=b ₄ Δf ⁴ +b ₃ Δf ³ +b ₂ Δf ² +b ₁ Δf ¹ +b ₀ Δf ⁰  (30)

C=c ₄ Δf ⁴ +c ₃ Δf ³ +c ₂ Δf ² +c ₁ Δf ¹ +c ₀ Δf ⁰  (31)

D=d ₄ Δf ⁴ +d ₃ Δf ³ +d ₂ Δf ² +d ₁ Δf ¹ +d ₀ Δf ⁰  (32)

[0052] The system for determining an exact phasor from a measured phasor at a particular difference frequency is shown in FIG. 9. The frequency difference Af, as determined by element 50 in FIG. 9, is applied to tables 54-57 in which are stored the polynomial coefficients for the particular filter pair used. The compensating matrix elements A, B, C, D are then calculated using the stored coefficients and the above equations 29-32. The four compensating element values are applied as inputs to calculation circuit 58, along with the measured phasor X_(mes). The output of circuit 58 is the exact (true) phasor, comprising a real component X_(R) and an imaginary component jX_(I).

[0053] The above system and method results in an exact phasor value using a measured phasor and the frequency difference between the actual frequency and the rated frequency of the power system. The system provides accurate results over a range of frequency difference (Δf). When more than one exact waveform phasor is to be determined, in a given system with a known Δf, it is necessary to compute the compensating element only once. The same values can be used for all measured phasors in the system.

[0054] Although a preferred embodiment of the invention has been described for purposes of illustration, it should be understood that various changes, modification and substitutions may be incorporated in the embodiment without departing from the spirit of the invention which is defined in the claims which follow. 

What is claimed:
 1. A system for determining an accurate fundamental phasor for a signal waveform from a system where there is a difference between a rated frequency of said waveform for said system and an actual frequency of the waveform at a given point in time, comprising: a circuit for determining a measured phasor, including both real and imaginary parts, representing the signal waveform, without adjusting for frequency of the waveform; a circuit for determining the actual frequency of the waveform in the system and the frequency difference between the actual frequency and the rated frequency; and a circuit for determining an actual phasor, including both real and imaginary parts for said waveform, which takes into account said frequency difference by multiplying the real and imaginary components of the measured phasor by a preselected 2 by 2 compensating matrix.
 2. A system of claim 1, wherein the matrix includes four elements which are real numbers.
 3. A system of claim 1, wherein the waveforms are voltage and current waveforms from a power system and wherein the phasors are used in a protective relay for the power system.
 4. A system of claim 1, wherein the compensating matrix is used for a linear transformation of the Cartesian coordinates of the measured phasor.
 5. A system of claim 1, wherein the compensating matrix is defined by the following expression: $\begin{bmatrix} X_{R} \\ X_{I} \end{bmatrix} = {\begin{bmatrix} {A\left( {\Delta \quad \omega} \right)} & {B({\Delta\omega})} \\ {C\left( {\Delta \quad \omega} \right)} & {D({\Delta\omega})} \end{bmatrix} \cdot \begin{bmatrix} X_{mes\_ R} \\ X_{mes\_ I} \end{bmatrix}}$

wherein the measured phasor determining circuit includes a pair of orthogonal finite impulse response (FIR) filters, wherein X_(R) and X_(I) equals the real and imaginary parts of the exact phasor, X_(mes—R) and X_(mes—I) are the real and imaginary parts of the measured phasor, wherein Δω is the frequency difference between the actual frequency and the rated frequency of the waveform from the system, and wherein the A, B, C, D values depend upon the particular filter used to determine the measured phasor.
 6. A system of claim 1, wherein the measured phasor determining circuit includes a pair of orthogonal finite impulse response (FIR) filters, selected from the following group: full-cycle Fourier filter, half-cycle Fourier filter and Cosine filter.
 7. A method for determining an accurate fundamental phasor for an incoming waveform from a system where there is a difference between a rated frequency of said waveform for said system and the actual frequency of the waveform at a given point in time, comprising the steps of: determining a measured phasor, including both real and imaginary parts, representing the incoming waveform, without adjusting for frequency of the waveform; determining the actual frequency of the waveform in the system and the frequency difference between the actual frequency and the rated frequency; and determining an actual phasor, including both real and imaginary parts for said waveform, which takes into account said frequency difference by multiplying the real and imaginary components of the measured phasor by a preselected 2 by 2 compensating matrix.
 8. A method of claim 7, wherein the matrix includes four elements which are real numbers.
 9. A method of claim 7, wherein the waveforms are voltage and current waveforms from a power system and wherein the phasors are used in a protective relay for the power system.
 10. A method of claim 7, wherein the compensating matrix is used for a linear transformation of the Cartesian coordinates of the measured phasor.
 11. A method of claim 7, wherein the compensating matrix is defined by the following expression: $\begin{bmatrix} X_{R} \\ X_{I} \end{bmatrix} = {\begin{bmatrix} {A\left( {\Delta \quad \omega} \right)} & {B({\Delta\omega})} \\ {C\left( {\Delta \quad \omega} \right)} & {D({\Delta\omega})} \end{bmatrix} \cdot \begin{bmatrix} X_{mes\_ R} \\ X_{mes\_ I} \end{bmatrix}}$

wherein the measured phasor determining circuit includes a pair of orthogonal finite impulse (FIR) filters, wherein X_(R) and X_(I) equals the real and imaginary parts of the exact phasor, X_(mes—R) and X_(mes I) are the real and imaginary parts of the measured phasor, wherein Δω is the frequency difference between the actual frequency and the rated frequency of the waveform from the system, and wherein the A, B, C, D values depend upon the particular filter used to determine the measured phasor. 